package com.ruoyi.game.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.game.mapper.GameWithdrawalConfigMapper;
import com.ruoyi.game.domain.GameWithdrawalConfig;
import com.ruoyi.game.service.IGameWithdrawalConfigService;

/**
 * 提现设置Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-23
 */
@Service
public class GameWithdrawalConfigServiceImpl implements IGameWithdrawalConfigService 
{
    @Autowired
    private GameWithdrawalConfigMapper gameWithdrawalConfigMapper;

    /**
     * 查询提现设置
     * 
     * @param withdrawalConfigId 提现设置主键
     * @return 提现设置
     */
    @Override
    public GameWithdrawalConfig selectGameWithdrawalConfigByWithdrawalConfigId(Long withdrawalConfigId)
    {
        return gameWithdrawalConfigMapper.selectGameWithdrawalConfigByWithdrawalConfigId(withdrawalConfigId);
    }

    /**
     * 查询提现设置列表
     * 
     * @param gameWithdrawalConfig 提现设置
     * @return 提现设置
     */
    @Override
    public List<GameWithdrawalConfig> selectGameWithdrawalConfigList(GameWithdrawalConfig gameWithdrawalConfig)
    {
        return gameWithdrawalConfigMapper.selectGameWithdrawalConfigList(gameWithdrawalConfig);
    }

    /**
     * 新增提现设置
     * 
     * @param gameWithdrawalConfig 提现设置
     * @return 结果
     */
    @Override
    public int insertGameWithdrawalConfig(GameWithdrawalConfig gameWithdrawalConfig)
    {
        return gameWithdrawalConfigMapper.insertGameWithdrawalConfig(gameWithdrawalConfig);
    }

    /**
     * 修改提现设置
     * 
     * @param gameWithdrawalConfig 提现设置
     * @return 结果
     */
    @Override
    public int updateGameWithdrawalConfig(GameWithdrawalConfig gameWithdrawalConfig)
    {
        gameWithdrawalConfig.setUpdateTime(DateUtils.getNowDate());
        return gameWithdrawalConfigMapper.updateGameWithdrawalConfig(gameWithdrawalConfig);
    }

    /**
     * 批量删除提现设置
     * 
     * @param withdrawalConfigIds 需要删除的提现设置主键
     * @return 结果
     */
    @Override
    public int deleteGameWithdrawalConfigByWithdrawalConfigIds(Long[] withdrawalConfigIds)
    {
        return gameWithdrawalConfigMapper.deleteGameWithdrawalConfigByWithdrawalConfigIds(withdrawalConfigIds);
    }

    /**
     * 删除提现设置信息
     * 
     * @param withdrawalConfigId 提现设置主键
     * @return 结果
     */
    @Override
    public int deleteGameWithdrawalConfigByWithdrawalConfigId(Long withdrawalConfigId)
    {
        return gameWithdrawalConfigMapper.deleteGameWithdrawalConfigByWithdrawalConfigId(withdrawalConfigId);
    }
}
